public class MyCompare <E extends Comparable<E>>{

    public int compare(E o1,E o2){
        return o1.compareTo(o2);
    }
}
